package com.baizhi.controller;

import com.baizhi.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/log")
public class LogController {

    @Autowired
    private LogService logService;

//    查询所有日志记录  分页查询
    @RequestMapping("/listLog")
    public Map listLog(int page,int limit,String logContent,String logType){
        return logService.listLog(page,limit,logContent,logType);
    }


}
